package com.youxue.teachin.set.child.xuekexueduan;

import java.util.List;

import com.library.rest.vo.ResponseModel;
import com.youxue.teachin.common.api.UrlHelper;
import com.youxue.teachin.set.child.xuekexueduan.vo.ItemVO;
import retrofit2.http.GET;
import retrofit2.http.Headers;
import rx.Observable;

import static com.library.rest.retrofiturlmanager.RetrofitUrlManager.DOMAIN_NAME_HEADER;

/**
 * 在此写用途
 *
 * @author: zhiwei
 * @date: 2017-10-07 17:20
 * @version: 9.1.0
 */
public interface IXuekeXueduanRepository {
    /**
     * 获取学段列表
     * @return
     */
    @Headers({DOMAIN_NAME_HEADER + UrlHelper.TEACHIN_DOMAIN_NAME})
    @GET("/studyStages")
    Observable<ResponseModel<List<ItemVO>>> getStudyStages();

    /**
     * 获取学科列表
     * @return
     */
    @Headers({DOMAIN_NAME_HEADER + UrlHelper.TEACHIN_DOMAIN_NAME})
    @GET("/studySubject")
    Observable<ResponseModel<List<ItemVO>>> getStudySubject();
}
